<div id="subnav">
    <ul>
        <li><?php echo link_to('Modify Pages',array('controller'=>'admin/pages' )
        )?></li>
        <?php if (has_access_to('Pages::Modify Templates')) {?><li><?php echo link_to('Modify Templates',array('controller'=>'admin/pages' ,'action'=>'templates')
        )?></li><?php } ?>        
    </ul>
</div>